﻿<!-- 
    This HTML file implements a specific unit test on the 
    SharePoint Cross Platform JavaScript Library (spcpl-0.1.0.min.js).
    regarding it detecting the same version of itself already loaded on the page.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Library Already Present Detection: Same Version</title>
    <link href="../Content/qunit-1.12.0.css" rel="stylesheet" />
</head>
<body>
    <!-- Load QUnit JavaScript unit testing framework -->
    <script src="../Scripts/qunit-1.12.0.js"></script>


    <!-- Load our fake version of the SharePoint Cross Platform Library to fake
         the same version of the library already loaded on the page  -->
    <script src="LibraryAlreadyPresentDetection-SameVersionFakeLibrary.js"></script>

    <!-- Load the real SharePoint Cross Platform Library on the page  -->
    <script src="../spcpl-0.1.0.js"></script>

    <!-- Implement the real QUnit test logic  -->
    <script type="text/javascript">
        test("Testing same version already on page", function () {
            // if the version reported back from the SharePoint Cross Platform Library
            // is the current version, then this is correct
            ok(spcpl.version === "0.1.0");
        });

    </script>
</body>
</html>
